package com.example.kemgdemo.enums;

import lombok.Getter;
import lombok.Setter;

/**
 * 学号：1401030048
 * Created by 梁嘉伟 on 2019/7/11
 */
@Getter
public enum  ExceptionEnum {


    USER_NOT_FOUND(0, "找不到用户"),
    USER_IS_EXIST(1, "用户已存在"),
    INSERT_FAILED(2, "插入失败"),
    USER_IS_NOT_LOGIN(3, "用户未登录")
            ;

    private Integer code;

    private String message;

    ExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
